package cn.edu.ujn.food.dao;

import cn.edu.ujn.food.entity.Orderdetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface OrderdetailDao {
@Mapper
    Orderdetail queryById(Integer detId);

    List<Orderdetail> queryAllByLimit(Orderdetail orderdetail, @Param("pageable") Pageable pageable);

    long count(Orderdetail orderdetail);

    int insert(Orderdetail orderdetail);

    int insertBatch(@Param("entities") List<Orderdetail> entities);

    int insertOrUpdateBatch(@Param("entities") List<Orderdetail> entities);

    int update(Orderdetail orderdetail);

    int deleteById(Integer detId);

    List<Orderdetail> selectAll(Orderdetail orderdetail);

    Integer selectCount();
}

